.el-radio-group {
  .el-radio.is-checked .el-radio__inner {
    background: none;

    &::after {
      @apply w-[8px] h-[8px];

      background: var(--el-color-primary);
    }
  }

  .el-radio__label {
    color: #2d2e33 !important;
    font-size: 12px;
  }
}

.el-radio {
  height: 30px;
  font-weight: 400;
}

.app-radio-group {
  width: auto;
  height: 30px;
  line-height: 30px;
  border: var(--el-border);
  border-radius: 8px;
  display: flex;

  .el-radio-button {
    @apply h-full;

    .el-radio-button__inner {
      @apply w-full h-full text-[#666] text-[14px] leading-none rounded-[6px];

      border: 1px solid transparent;
    }

    &.is-active {
      .el-radio-button__inner {
        border-color: var(--el-color-primary);
        box-shadow: 0 0 6px 0 rgba(22, 76, 255, 0.2);
        background: rgba(21, 98, 252, 0.06);
        color: var(--el-color-primary);
        @apply text-[#1562FC] rounded-[6px];
      }
    }
  }
}

// 按钮形状radio
.base-radio-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: space-between;
  height: 112px;

  .el-radio {
    .el-radio__label {
      color: #2d2e33;
    }
  }
}

.radio-content {
  height: 32px;
  border-radius: 4px;
  background: #f7f8fa;
  width: auto;
  border: none;
  flex-shrink: 0;

  .el-radio-button {
    @apply h-full;

    position: relative;
    width: auto !important;
    padding: 0 4px;
    overflow: hidden;
    color: #fff;
    border: none;
    line-height: 32px;

    &::after,
    &::before {
      content: '';
      height: 12px;
      width: 1px;
      position: absolute;
      top: 30%;
      background: #dbdde2;
    }

    &::after {
      right: -1px;
    }

    &::before {
      left: 0;
    }

    &.is-active {
      .el-radio-button__inner {
        color: #164cff;
        background: #fff;
        border: 1px solid #f1f2f3;
        box-shadow: 0 0 6px 0 rgba(22, 76, 255, 0.2);
      }
    }

    &.is-active::after,
    &.is-active::before,
    &:last-child::after,
    &:first-child::before,
    &.is-active + .el-radio-button::before {
      background: #f7f8fa !important;
    }

    .el-radio-button__inner {
      padding: 5px 14px;
      background: #f7f8fa;
      font-size: 12px;
      color: #83858a;
      font-weight: normal;
      border-radius: 2px;
      border: 1px solid transparent;
      box-shadow: none !important;
    }
  }
}

.radio-content-shallow {
  height: 32px;
  border-radius: 4px;
  background: #f7f8fa;
  width: auto;
  border: none;
  flex-shrink: 0;

  .el-radio-button {
    @apply h-full;

    position: relative;
    width: auto !important;
    padding: 0 4px;
    overflow: hidden;
    color: #fff;
    border: none;
    line-height: 32px;

    &::after,
    &::before {
      content: '';
      height: 12px;
      width: 0;
      position: absolute;
      top: 30%;
      background: #dbdde2;
    }

    &::after {
      right: -1px;
    }

    &::before {
      left: 0;
    }

    &.is-active {
      .el-radio-button__inner {
        color: #164cff;
        background: #fff;
        border: 1px solid #f1f2f3;
      }
    }

    &.is-active::after,
    &.is-active::before,
    &:last-child::after,
    &:first-child::before,
    &.is-active + .el-radio-button::before {
      background: #f7f8fa !important;
    }

    .el-radio-button__inner {
      border: 1px solid transparent;
      padding: 5px 8px;
      background: #f7f8fa;
      font-size: 12px;
      color: #2d2e33;
      border-radius: 2px;
      box-shadow: none;
    }
  }
}
